package demo.pattern.factory.abstractf;

import demo.pattern.factory.entity.KeyBoard;
import demo.pattern.factory.entity.Mouse;


public class AbstractFTest {
    public static void main(String[] args) {
        ComputerFactory dellMouseFactory = new DellMouseFactoryImpl();
        Mouse mouse1 = dellMouseFactory.createMouse();
        KeyBoard keyBoard1 = dellMouseFactory.createKeyBoard();
        mouse1.sayMouse();
        keyBoard1.sayKeyBoard();
    }
}
